package com.kelvin.oocl;

import java.io.IOException;
import java.net.Socket;
import java.net.UnknownHostException;
import java.util.Scanner;

public class App {
	public static void main(String[] args) {
		Socket socket = null;
		try {
			System.out.println("input name!");
			Scanner scanner = new Scanner(System.in);
			String line = scanner.nextLine();
			socket = new Socket("127.0.0.1", 7888);
			new Client(socket,line.trim());
		} catch (UnknownHostException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
